package org.spring.boot.jdbctemplate.ws;

import org.spring.boot.jdbctemplate.dao.TmptabDao;
import org.spring.boot.jdbctemplate.dto.Tmptab;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: eastcom
 * @desc:
 **/
@RestController
@RequestMapping("/spring/boot/jdbc")
public class TmptabWs {

	@Autowired
	private TmptabDao tmptabDao;

	@RequestMapping(value = "/list", method = RequestMethod.GET)
	public List<Tmptab> queryForList(){
		return tmptabDao.queryForList();
	}

}
